<?php

use backend\assets\AppAsset;
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
use yii\helpers\Url;

AppAsset::register($this);
?>
<div class="site-login">
    <p style="margin-top:100px;"></p>
    <aside>
        <ul class="ul">
            <li>登录</li>
            <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
            <?= $form->field($model, 'username')->textInput(['placeholder' => "请输入账户名称"]) ?>
            <?= $form->field($model, 'password')->passwordInput()->textInput(['placeholder' => "请输入密码"]) ?>
            <?= $form->field($model, 'code')->textInput(['placeholder' => "请输入验证码"]) ?>
            <div class="form-group">
                <?= Html::submitButton('登 录', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
            </div>
            <?php ActiveForm::end(); ?>
        </ul>
    </aside>
</div>
<script type="text/javascript">
//		setTimeout("createCode()",0);
</script>



